package cn.edu.scau.cmi.mazhuanglong.composite.saft;

import java.util.Set;
import java.util.HashSet;

public class SafeTeam extends SafeOrganization {

	private String name;
	private Set<SafeOrganization> children = new HashSet<SafeOrganization>();
	
	public SafeTeam(String name) {
		setName(name);
	}
	
	public SafeOrganization addChild(SafeOrganization child) {
		children.add(child);
		child.setParent(this);
		return this;
	}
	
//	

	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Set<SafeOrganization> getChildren(){
		return children;
	}
	
	public void setChildren(Set<SafeOrganization> children) {
		this.children = children;
	}
}


